package com.atguigu.controller;

import com.atguigu.service.BaseBrandService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
/*
*
* redis缓存和分布式锁测试
*
*
* */
@RestController
@RequestMapping("/product")
public class ConCurrentController {

    @Autowired
    BaseBrandService baseBrandService;


    @GetMapping("setNum")
    public String setNum(){
        baseBrandService.setNum();
        return "success";
    }

}
